﻿<ribbon:RibbonWindow
        xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
        xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
        xmlns:ribbon="clr-namespace:Microsoft.Windows.Controls.Ribbon;assembly=RibbonControlsLibrary"
        xmlns:ex="clr-namespace:Smith.WPF.HtmlEditor;assembly=Smith.WPF.HtmlEditor"
        xmlns:JasRibbonApplicatie="clr-namespace:JasRibbonApplicatie" x:Class="JasRibbonApplicatie.Views.BeheerAanvragen.MailWindow"
        x:Name="Window"
        Width="640" Height="491" Title="Nieuw bericht" >
    <Grid x:Name="LayoutRoot">
        <Grid.RowDefinitions>
            <RowDefinition Height="Auto"/>
            <RowDefinition Height="Auto"/>
            <RowDefinition Height="*"/>
        </Grid.RowDefinitions>
        <ribbon:Ribbon Grid.Row="0" x:Name="Ribbon">
            <ribbon:Ribbon.ApplicationMenu>
                <ribbon:RibbonApplicationMenu SmallImageSource="/JasRibbonApplicatie;component/Images/logo_32.png">
                    <ribbon:RibbonApplicationMenuItem Header="Afsluiten"
													  x:Name="CloseButton"
													  ImageSource="/JasRibbonApplicatie;component/Images/close.png" Click="CloseButton_Click" />
                </ribbon:RibbonApplicationMenu>
            </ribbon:Ribbon.ApplicationMenu>
            <ribbon:RibbonTab x:Name="BerichtTab" 
                              Header="Bericht">
                <ribbon:RibbonGroup x:Name="BerichtGroup" 
                                    Header="">
                    <ribbon:RibbonButton x:Name="VerzendenButton"
										 Width="100"
										 LargeImageSource="/JasRibbonApplicatie;component/Images/mail/big/Mail%20Send.png"
                                         SmallImageSource="/JasRibbonApplicatie;component/Images/mail/small/Mail%20Send.png"
										 Label="Verzenden" Click="verzendButton_Click" />
                </ribbon:RibbonGroup>
                <ribbon:RibbonGroup x:Name="BijlageGroup" Header="Bijlage" AllowDrop="True" Drop="BijlageGroup_Drop" LargeImageSource="/JasRibbonApplicatie;component/Images/mail/big/Attach.png" SmallImageSource="/JasRibbonApplicatie;component/Images/mail/small/Attach.png">
                    
                </ribbon:RibbonGroup>
            </ribbon:RibbonTab>
        </ribbon:Ribbon>
        <Grid Grid.Row="1">
            <Grid.Background>
                <LinearGradientBrush EndPoint="0.5,1" StartPoint="0.5,0">
                    <GradientStop Color="#30749CF7" Offset="0.019" />
                    <GradientStop Color="Transparent" Offset="1" />
                    <GradientStop Color="#83000000" Offset="0" />
                </LinearGradientBrush>
            </Grid.Background>
            <Grid.ColumnDefinitions>
                <ColumnDefinition Width="69" />
                <ColumnDefinition Width="*" />
            </Grid.ColumnDefinitions>
            <Grid.RowDefinitions>
                <RowDefinition/>
                <RowDefinition/>
                <RowDefinition/>
                <RowDefinition/>
            </Grid.RowDefinitions>
            <Button  Grid.Row="0" Grid.Column="0" x:Name="aanLabel" Content="Aan..." VerticalContentAlignment="Center" HorizontalContentAlignment="Left" Background="{x:Null}" BorderBrush="{x:Null}" Click="aanLabel_Click"/>
            
            <TextBox Grid.Row="0" Grid.Column="1" x:Name="aanTextBox" Text="" Margin="5,5,5,0" Padding="1,0" VerticalContentAlignment="Center" />
            <Button  Grid.Row="1" Grid.Column="0" x:Name="ccLabel" Content="CC..." VerticalContentAlignment="Center" HorizontalContentAlignment="Left" Background="{x:Null}" BorderBrush="{x:Null}" Click="ccLabel_Click" />
            <TextBox Grid.Row="1" Grid.Column="1" x:Name="ccTextBox" Padding="1,0" Margin="5,5,5,0" VerticalContentAlignment="Center" />
            <Button  Grid.Row="2" Grid.Column="0" x:Name="bccLabel" Content="BCC..." VerticalContentAlignment="Center" HorizontalContentAlignment="Left" Background="{x:Null}" BorderBrush="{x:Null}" Click="bccLabel_Click" />
            <TextBox Grid.Row="2" Grid.Column="1" x:Name="bccTextBox" Padding="1,0" Margin="5,5,5,0" VerticalContentAlignment="Center" />
            <Label   Grid.Row="3" Grid.Column="0" x:Name="onderwerpLabel" Content="Onderwerp" VerticalContentAlignment="Center" />
            <TextBox Grid.Row="3" Grid.Column="1" x:Name="onderwerpTextbox" Margin="5,5,110,5" Text="" VerticalContentAlignment="Center" Padding="1,0" />
            <Button  Grid.Row="3" Grid.Column="1" Content="Cc Bcc verbergen" HorizontalAlignment="Right" x:Name="hideCcBccButton" Foreground="#FF1B64D3" Click="hideCcBccButton_Click" Margin="5" Width="100" Background="{x:Null}" BorderBrush="{x:Null}" />
            <Popup Name="emailPopup" StaysOpen="False" Placement="Relative" VerticalOffset="25" HorizontalOffset="1" AllowsTransparency="True">
                <Border BorderThickness="1" CornerRadius="10">
                    <Grid>
                        <Grid.RowDefinitions>
                            <RowDefinition />
                            <RowDefinition />
                            <RowDefinition />
                            <RowDefinition />
                        </Grid.RowDefinitions>
                        <Label Grid.Row="0" Name="toLabel" Content="Aan:" VerticalContentAlignment="Center" Margin="10,0,10,2" />
                        <TextBox Grid.Row="1" Name="searchTextBox" MinWidth="120" TextChanged="searchTextBox_TextChanged" Margin="10,2" />
                        <ListBox Grid.Row="2" Name="resultsListBox" MinWidth="120" Height="200" SelectionChanged="resultsListBox_SelectionChanged" Margin="10,2" />
                        <Button Grid.Row="3" Name="okButton" Content="OK" IsEnabled="False" Click="okButton_Click" Margin="10,2,10,10" />
                    </Grid>
                    <Border.Background>
                        <LinearGradientBrush EndPoint="0.5,1" StartPoint="0.5,0">
                            <GradientStop Color="#F0C2DDFD" Offset="0" />
                            <GradientStop Color="#F0FFFFFF" Offset="1" />
                        </LinearGradientBrush>
                    </Border.Background>
                    <Border.BorderBrush>
                        <LinearGradientBrush EndPoint="0.5,1" StartPoint="0.5,0">
                            <GradientStop Color="#C2006AFF" Offset="0" />
                            <GradientStop Color="#F0FFFFFF" Offset="1" />
                        </LinearGradientBrush>
                    </Border.BorderBrush>
                </Border>
            </Popup>
        </Grid>
        <ex:HtmlEditor Grid.Row="2" x:Name="BodyEditor"/>
        
    </Grid>
</ribbon:RibbonWindow>
